﻿<Pages:ControlBase x:Class="Rio.Framework.Pages.Viewer.ViewerEditor"
                   x:Name="ViewerEditorControl"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                   xmlns:Pages="clr-namespace:Rio.Framework.Pages"
                   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                   xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=Telerik.Windows.Controls"
                   mc:Ignorable="d"
                   d:DesignHeight="300" 
                   d:DesignWidth="400" >
    
    <Pages:ControlBase.Resources>
        <telerik:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
    </Pages:ControlBase.Resources>

    <Grid x:Name="LayoutRoot">

        <telerik:RadDocking x:Name="Docking" 
                            Grid.Column="0" 
                            telerik:AnimationManager.AnimationSelector="{x:Null}" 
                            telerik:AnimationManager.IsAnimationEnabled="False"
                            BorderThickness="0" 
                            Padding="0">

            <!--telerikQuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True"-->

            <!--Viewer-->
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup>
                        <telerik:RadDocumentPane Visibility="Collapsed" 
                                                 CanUserClose="False">
                            
                            <Border Name="ImageViewerBorder"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5,1"
                                     StartPoint="0.5,0">
                                        <GradientStop Color="#CF484848"
                                  Offset="0" />
                                        <GradientStop Color="#DBADADAD"
                                  Offset="1" />
                                        <GradientStop Color="#ADA7A7A7"
                                  Offset="0.401" />
                                        <GradientStop Color="#F3AAAAAA"
                                  Offset="0.709" />
                                    </LinearGradientBrush>
                                </Border.Background>

                                <telerik:RadImageEditor Name="ImageViewer"
                                    Width="Auto"
                                    Height="Auto" 
                                    BorderBrush="{x:Null}"
                                    RenderTransformOrigin="0.5,0.5">
                                </telerik:RadImageEditor>

                            </Border>
                        </telerik:RadDocumentPane >
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>


            <!--Tools-->
            <telerik:RadSplitContainer Name="LeftContainer" 
                                       InitialPosition="DockedRight">
                <telerik:RadPaneGroup x:Name="ToolGroup" >
                    <telerik:RadPane x:Name="ToolPane" 
                                     IsPinned="False" 
                                     Header="Traitements"
                                     CanFloat="False"
                                     ContextMenuTemplate="{x:Null}"
                                     CanUserClose="False" />
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>

        </telerik:RadDocking>

    </Grid>
</Pages:ControlBase>
